load("@rules_jvm_external//:defs.bzl", "artifact")
load("//java:defs.bzl", "java_library")

java_library(
    name = "commands",
    srcs = glob(["*.java"]),
    resources = glob(["*.txt"]),
    visibility = [
        "//java/src/org/openqa/selenium/grid:__pkg__",
        "//java/test/org/openqa/selenium/grid/gridui:__pkg__",
        "//java/test/org/openqa/selenium/grid/router:__pkg__",
    ],
    runtime_deps = [
        "//java/src/org/openqa/selenium/events/local",
    ],
    deps = [
        "//java:auto-service",
        "//java/src/org/openqa/selenium:core",
        "//java/src/org/openqa/selenium/cli",
        "//java/src/org/openqa/selenium/events",
        "//java/src/org/openqa/selenium/grid:base-command",
        "//java/src/org/openqa/selenium/grid/config",
        "//java/src/org/openqa/selenium/grid/data",
        "//java/src/org/openqa/selenium/grid/distributor",
        "//java/src/org/openqa/selenium/grid/distributor/config",
        "//java/src/org/openqa/selenium/grid/distributor/local",
        "//java/src/org/openqa/selenium/grid/distributor/selector",
        "//java/src/org/openqa/selenium/grid/graphql",
        "//java/src/org/openqa/selenium/grid/log",
        "//java/src/org/openqa/selenium/grid/node",
        "//java/src/org/openqa/selenium/grid/node/config",
        "//java/src/org/openqa/selenium/grid/node/local",
        "//java/src/org/openqa/selenium/grid/router",
        "//java/src/org/openqa/selenium/grid/router/httpd",
        "//java/src/org/openqa/selenium/grid/security",
        "//java/src/org/openqa/selenium/grid/server",
        "//java/src/org/openqa/selenium/grid/sessionmap",
        "//java/src/org/openqa/selenium/grid/sessionmap/local",
        "//java/src/org/openqa/selenium/grid/sessionqueue",
        "//java/src/org/openqa/selenium/grid/sessionqueue/config",
        "//java/src/org/openqa/selenium/grid/sessionqueue/local",
        "//java/src/org/openqa/selenium/grid/web",
        "//java/src/org/openqa/selenium/json",
        "//java/src/org/openqa/selenium/netty/server",
        "//java/src/org/openqa/selenium/remote",
        artifact("com.beust:jcommander"),
        artifact("com.google.guava:guava"),
    ],
)
